//登录
var loadingUser = function(user){
	return new Promise((resolve,reject)=>{
		const db = wx.cloud.database()
		const userd = db.collection('users').add({
			data:user
		})
		.then(res=>{
			resolve(res)
		})
		.catch(err=>{
			reject(err)
		})
	})
}

export default loadingUser